package edu.ar.bases.dvdstore.domainmodel.entities;

import edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IEvento;
import edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IRenglonFactura;




public class RenglonFactura implements IRenglonFactura {

	private String descripcion;
	private int rengFacID;
	public IEvento evento;
	private Factura factura;

	public RenglonFactura(){

	}

	public void finalize() throws Throwable {

	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((descripcion == null) ? 0 : descripcion.hashCode());
		result = prime * result + ((evento == null) ? 0 : evento.hashCode());
		result = prime * result + rengFacID;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final RenglonFactura other = (RenglonFactura) obj;
		if (descripcion == null) {
			if (other.descripcion != null)
				return false;
		} else if (!descripcion.equals(other.descripcion))
			return false;
		if (evento == null) {
			if (other.evento != null)
				return false;
		} else if (!evento.equals(other.evento))
			return false;
		if (rengFacID != other.rengFacID)
			return false;
		return true;
	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IRenglonFactura#getDescripcion()
	 */
	public String getDescripcion() {
		return descripcion;
	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IRenglonFactura#setDescripcion(java.lang.String)
	 */
	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IRenglonFactura#getRengFacID()
	 */
	public int getRengFacID() {
		return rengFacID;
	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IRenglonFactura#setRengFacID(int)
	 */
	public void setRengFacID(int rengFacID) {
		this.rengFacID = rengFacID;
	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IRenglonFactura#getEvento()
	 */
	public IEvento getEvento() {
		return evento;
	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IRenglonFactura#setEvento(edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IEvento)
	 */
	public void setEvento(IEvento evento) {
		this.evento = evento;
	}

	public Factura getFactura() {
		return factura;
	}

	public void setFactura(Factura factura) {
		this.factura = factura;
	}

}